
#ifndef UNITFACTORY_H_
#define UNITFACTORY_H_

#include <map>
#include <string>
#include "UnitImpl.h"

using namespace std;
class UnitFactory
{
    UnitFactory();
public:
    static UnitFactory* getInstance();
    Unit* getUnit(string type);
private:
    map<string,Unit*> unitMap;
    static UnitFactory* defaultInstance;
};

#endif

